package edu.dgut.bbssystem.service.impl;

import edu.dgut.bbssystem.mapper.FollowMapper;
import edu.dgut.bbssystem.pojo.Follow;
import edu.dgut.bbssystem.service.FollowService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class FollowServiceImpl implements FollowService {
    @Autowired
    private FollowMapper followMapper;

    @Override
    public int addFollow(Follow follow) {
        followMapper.insert(follow);
        return  followMapper.insert(follow);
    }
}
